﻿<Application
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Class="Video_katalog.App"
             StartupUri="CatalogForm.xaml">
    <Application.Resources>
         
    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
    			<ResourceDictionary Source="Simple Styles.xaml"/>
    		</ResourceDictionary.MergedDictionaries>
    		<LinearGradientBrush x:Key="genreGridBackgroundGlobal" EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FF4A6E45" Offset="1"/>
    			<GradientStop Color="#FFCAFDC3"/>
    		</LinearGradientBrush>
    		<SolidColorBrush x:Key="CheckBoxFillNormal" Color="#F4F4F4"/>
    		<SolidColorBrush x:Key="CheckBoxStroke" Color="#8E8F8F"/>
    		<Style x:Key="EmptyCheckBoxFocusVisual">
    			<Setter Property="Control.Template">
    				<Setter.Value>
    					<ControlTemplate>
    						<Rectangle Margin="1" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
    					</ControlTemplate>
    				</Setter.Value>
    			</Setter>
    		</Style>
    		<Style x:Key="CheckRadioFocusVisual">
    			<Setter Property="Control.Template">
    				<Setter.Value>
    					<ControlTemplate>
    						<Rectangle Margin="14,0,0,0" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
    					</ControlTemplate>
    				</Setter.Value>
    			</Setter>
    		</Style>
    		<Style x:Key="CheckBoxStyleCheckUnckeck" TargetType="{x:Type CheckBox}">
    			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    			<Setter Property="Background" Value="{StaticResource CheckBoxFillNormal}"/>
    			<Setter Property="BorderBrush" Value="{StaticResource CheckBoxStroke}"/>
    			<Setter Property="BorderThickness" Value="1"/>
    			<Setter Property="FocusVisualStyle" Value="{StaticResource EmptyCheckBoxFocusVisual}"/>
    			<Setter Property="Template">
    				<Setter.Value>
    					<ControlTemplate TargetType="{x:Type CheckBox}">
    						<BulletDecorator Background="Transparent" SnapsToDevicePixels="true">
    							<BulletDecorator.Bullet>
    								<Microsoft_Windows_Themes:BulletChrome BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" IsChecked="{TemplateBinding IsChecked}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}"/>
    							</BulletDecorator.Bullet>
    							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
    						</BulletDecorator>
    						<ControlTemplate.Triggers>
    							<Trigger Property="HasContent" Value="true">
    								<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}"/>
    								<Setter Property="Padding" Value="4,0,0,0"/>
    							</Trigger>
    							<Trigger Property="IsEnabled" Value="false">
    								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    							</Trigger>
								<Trigger Property="IsChecked" Value="false">
    								<Setter Property="FontSize" Value="15"/>
    								<Setter Property="FontStyle" Value="Italic"/>
    								<Setter Property="Foreground" Value="Black"/>									
    							</Trigger>
								<Trigger Property="IsChecked" Value="true">
    								<Setter Property="FontSize" Value="16"/>
    								<Setter Property="FontStyle" Value="Normal"/>
    								<Setter Property="Foreground" Value="White"/>
    							</Trigger>
    						</ControlTemplate.Triggers>
    					</ControlTemplate>
    				</Setter.Value>
    			</Setter>
    		</Style>
    		<LinearGradientBrush x:Key="tabGridBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FF8B9999" Offset="1"/>
    			<GradientStop Color="White"/>
    		</LinearGradientBrush>
    	</ResourceDictionary>
         
    </Application.Resources>
</Application>
